﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RKMSikraKulingram.Utilities
{
    public class FormUtilities
    {
        public static void ComboBoxPopulation(ComboBox comboBox, object[] constants)
        {
            comboBox.Items.Clear();
            if (comboBox.DropDownStyle == ComboBoxStyle.DropDownList)
            {
                comboBox.Items.AddRange(new string[] { "Select" });
                comboBox.SelectedIndex = 0;
            }
            comboBox.Items.AddRange(constants);
        }
    }
}
